import request from '@/utils/request'

// 查询卖家订单列表
export function listSellerOrder(query) {
  return request({
    url: '/purchase/warehouseOrderInfo/list',
    method: 'get',
    params: query
  })
}

// 获取标记发货订单
export function getlogidticsList(query) {
  return request({
    url: '/purchase/sendOutGoods/list',
    method: 'get',
    params: query
  })
}

// 创建大包
export function handoverCommit(query) {
  return request({
    url: '/AeLogistics/handoverCommit',
    method: 'get',
    params: query
  })
}

// 声明发货
export function sellerShipmentForTop(query) {
  return request({
    url: '/AeLogistics/sellerShipmentForTop',
    method: 'get',
    params: query
  })
}

// 取消约揽
export function cancelWarehouseOrder(query) {
  return request({
    url: '/purchase/warehouseOrderInfo/cancelWarehouseOrder',
    method: 'get',
    params: query
  })
}

// 获取订单面单
export function orderExpressSheet(query) {
  return request({
    url: '/AeLogistics/getOrderExpressSheet',
    method: 'get',
    params: query
  })
}

// 保存声明发货信息
export function saveShipmentInfoForOther(query) {
  return request({
    url: '/order/order/sellerOrderExtend/saveShipmentInfoForOther',
    method: 'post',
    data: query
  })
}

// 线下发货声明发货
export function sellerShipmentForOther(query) {
  return request({
    url: '/order/order/sellerOrder/sellerShipmentForOther',
    method: 'get',
    params: query
  })
}

// 打印完成
export function printed(query) {
  return request({
    url: '/purchase/sellerChildOrderExtend/printed',
    method: 'get',
    params: query
  })
}

// 获取菜鸟订单面单
export function getOrderExpressSheet(query) {
  return request({
    url: '/ae/purchaseOrder/getOrderExpressSheet',
    method: 'get',
    params: query
  })
}

// 获取交接面单
export function getHandoverOrders(query) {
  return request({
    url: '/order/ae/handoverOrders/getOrderExpressSheet',
    method: 'get',
    params: query
  })
}

// 声明发货
export function sellerShipmentForCaiNiao(query) {
  return request({
    url: "/ae/purchaseOrder/sellerShipmentForCaiNiao",
    method: "get",
    params: query
  })
}


// 大包约揽
export function aeHandoverCommit(query) {
  return request({
    url: "/ae/purchaseOrder/handoverCommit",
    method: "get",
    params: query
  })
}


// 自动组包
export function autoHandoverCommit(query) {
  return request({
    url: "/order/ae/handoverOrders/handoverCommitAuto",
    method: "get",
    params: query
  })
}

// 自动组包
export function getHandoverOrderStoreList(query) {
  return request({
    url: "/order/order/sellerOrder/getHandoverOrderStoreList",
    method: "get",
    params: query
  })
}

// 修改国际运单号
export function updatelntlTrackingNo(query) {
  return request({
    url: "/AeLogistics/updateIntlTrackingNo",
    method: "get",
    params: query
  })
}
